﻿using System.Drawing;
using System.IO;
using com.zjgis.baseTools;
using com.zjgis.utility;
using ZJGIS.DataConvert.form;

namespace ZJGIS.DataConverti.button
{
    internal class btnDlgDataImportByCode : CommandTemplate
    {
        private frmDlgDataImportByCode m_frmDlgDataImport1 = null;

        //private frmTest m_frmDlgDataImport1;

        public btnDlgDataImportByCode()
        {
            base.m_caption = "矢量数据入库";
            Stream stream = ResourceManager.GetImageStream(GetType());
            if (stream != null)
            {
                base.Image = Image.FromStream(stream);
            }
            base.m_toolTip = base.m_caption;
        }

        public override void OnClick()
        {
            if (m_frmDlgDataImport1 == null || m_frmDlgDataImport1.IsDisposed)
            {
                m_frmDlgDataImport1 = new frmDlgDataImportByCode();// FrmDlgDataImport();
                //m_frmDlgDataImport1.StatusController = statusController;
                m_frmDlgDataImport1.Show(statusController.FrameController.FormControl);
            }
            else
            {
                m_frmDlgDataImport1.BringToFront();
            }
        }
    }
}
